<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<form method="post" id="loginForm" action="/j_security_check"
    onsubmit="saveUsername(this);return validateForm(this)" class="form-signin" autocomplete="off">
    <h2 class="form-signin-heading">
        #{text['login.heading']}
    </h2>
<c:if test="${param.error != null}">
    <div class="alert alert-error fade in">
        #{text['errors.password.mismatch']}
    </div>
</c:if>
    <input type="text" name="j_username" id="j_username" class="input-block-level"
           placeholder="#{text['label.username']}" required tabindex="1">
    <input type="password" class="input-block-level" name="j_password" id="j_password" tabindex="2"
           placeholder="#{text['label.password']}" required>

<c:if test="${appConfig['rememberMeEnabled']}">
    <label class="checkbox" for="rememberMe">
        <input type="checkbox" class="checkbox" name="_spring_security_remember_me" id="rememberMe" tabindex="3"/>
       #{text['login.rememberMe']}
</c:if>

    <button type="submit" class="btn btn-large btn-primary" name="login" tabindex="4">
        #{text['button.login']}
    </button>
</form>


<c:set var="scripts" scope="request">
<ui:include src="scripts/login.js" />
</c:set>

</ui:composition>